package com.hgkj.system.mapper;

import com.hgkj.system.domain.mid.RoleMenuMid;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMenuMapper {

    int checkMenuExistRole(Long menuId);

    int deleteByRoleId(Long roleId);

    int batchInsert(@Param("roleId") Long roleId, @Param("menuIds") Long[] menuIds);

    List<RoleMenuMid> selectAllMenu();

    List<Long> selectMenuIdsByRoleId(Long roleId);
}
